<div clas='content'>
				<div id="userGroups-container">
					<h1>Thay đổi mật khẩu</h1>
					<div class="form">

					<?php $form=$this->beginWidget('CActiveForm', array(
						'id'=>'user-groups-password-form',
						'enableAjaxValidation'=>true,
						'enableClientValidation'=>true,
					)); ?>
						<p class="note">Thông tin có dấu <span class="required">*</span> là bắt buộc.</p>
						<table>
						
						<?php if (Yii::app()->user->pbac('userGroups.user.admin') && Yii::app()->user->id !== $passModel->id) :?>
							<?php echo $form->hiddenField($passModel,'old_password', array('value'=>'filler'))?>
						<?php else: ?>
						
						<tr>
						<td>
							<?php echo $form->labelEx($passModel,'old_password'); ?> </td><td>
							<?php echo $form->passwordField($passModel,'old_password',array('size'=>60,'maxlength'=>120)); ?>
							<?php echo $form->error($passModel,'old_password'); ?>
						</td></tr>
						
						<?php endif; ?>
						
						<tr><td>
							<?php echo $form->labelEx($passModel,'password'); ?></td><td>
							<?php echo $form->passwordField($passModel,'password',array('size'=>60,'maxlength'=>120)); ?>
							<?php echo $form->error($passModel,'password'); ?>
						</td></tr>
						<tr><td>
							<?php echo $form->labelEx($passModel,'password_confirm'); ?></td><td>
							<?php echo $form->passwordField($passModel,'password_confirm',array('size'=>60,'maxlength'=>120)); ?>
							<?php echo $form->error($passModel,'password_confirm'); ?>
						</td></tr>
						<?php /* if (UserGroupsConfiguration::findRule('simple_password_reset') === false): ?>
						<div class="row">
							<?php echo $form->labelEx($passModel,'question'); ?>
							<?php echo $form->textField($passModel,'question',array('size'=>60,'maxlength'=>120)); ?>
							<?php echo $form->error($passModel,'question'); ?>
						</div>
						<div class="row">
							<?php echo $form->labelEx($passModel,'answer'); ?>
							<?php echo $form->passwordField($passModel,'answer',array('size'=>60,'maxlength'=>120)); ?>
							<?php echo $form->error($passModel,'answer'); ?>
						</div>
						<?php endif;  */?>
						<tr></td><td>
							<?php echo CHtml::hiddenField('formID', $form->id) ?>
							<?php echo CHtml::ajaxSubmitButton(Yii::t('userGroupsModule.general','Xác nhận'), Yii::app()->baseUrl .'/userGroups/user/update/id/'.$passModel->id, array('update' => '#userGroups-container'), array('id' => 'submit-pass'.$passModel->id.rand(), 'class'=>'btn btn-primary') ); ?>
						<td>
						</tr>
						</table>

					<?php $this->endWidget(); ?>
					</div><!-- form -->
				</div>				
</div>			